package config

import "github.com/zeromicro/go-zero/rest"

type MySql struct {
	Host     string `json:"Host"`
	Port     int64  `json:"Port"`
	User     string `json:"User,optional"`
	Password string `json:"Password,optional"`
	Database string `json:"Database,optional"`
}

type Redis struct {
	Host     string `json:"Host"`
	Port     int64  `json:"Port"`
	User     string `json:"User,optional"`
	Password string `json:"Password,optional"`
}

type Config struct {
	rest.RestConf
	MySql MySql `json:"MySql"`
	Redis Redis `json:"Redis"`
}
